﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace ThesisSystem.Models
{
    public class Teacher
    {
        [Key]
        public Guid UserID { get; set; }

        [Required(ErrorMessage = "*")]
        [Display(Name="教师工号")]
        public string TeacherID { get; set; }

        [Display(Name = "教师姓名")]
        [Required(ErrorMessage="*")]
        public string TeacherName { get; set; }

        [Display(Name = "性别")]
        [Required(ErrorMessage = "*")]
        public string Sex { get; set; }

        [Display(Name = "政治面貌")]
        public string PoliticalLandscape { get; set; }

        [Display(Name = "专业")]
        public string StudyProfessional { get; set; }

        [Display(Name = "系别")]
        [Required(ErrorMessage = "*")]
        public int DepartmentID { get; set; }

        [Display(Name = "职位")]
        [Required(ErrorMessage = "*")]
        public string Position { get; set; }

        [Display(Name = "备注")]
        public string Remark { get; set; }

        [Display(Name = "教师组编号")]
        public int? TeacherGroupID { get; set; }

        //一个教师指导N个学生
        public virtual ICollection<Student> Students { get; set; }

        public virtual Department Department { get; set; }

        public virtual TeacherGroup TeacherGroup { get; set; }
    }
}